﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Person
    {
        private int id;
        private string name;
        private char sex;
        private string cardid;
        private string tel;

        public Person(int id, string name, char sex, string cardid, string tel)
        {
            this.id = id;
            this.name = name;
            this.sex = sex;
            this.cardid = cardid;
            this.tel = tel;
        }
        public void stu()
        {
            Console.WriteLine("编号：{0}", this.id);
            Console.WriteLine();
            Console.WriteLine("姓名：{0}", this.name);
            Console.WriteLine();
            Console.WriteLine("性别：{0}", this.sex);
            Console.WriteLine();
            Console.WriteLine("身份证：{0}", this.cardid);
            Console.WriteLine();
            Console.WriteLine("联系方式：{0}", this.tel);
            Console.WriteLine();


        }
    }
}
